package com.zhb.designmode.structure.adapter;

public class ObjectPowerAdapter implements PowerTarget{

    private PowerAdaptee adaptee;

    public ObjectPowerAdapter(PowerAdaptee adaptee) {
        this.adaptee = adaptee;
    }

    public int output5V() {
        int output = adaptee.outPut220V();
        System.out.println("电源适配器开始工作，此时输出电压是：" + output);
        output = output/44;
        System.out.println("电源适配器工作完成，此时输出电压是：" + output);
        return output;
    }
}
